package com.lagou.edu;

import com.lagou.edu.result.Result;

import java.util.Map;

public interface UserService {

    //注册接口
    Result<Map<String, String>> register(String email, String password, String code);


    //登录接口
    Result<Map<String, String>> login(String email, String password);

    //是否注册
    boolean isRegister(String email);

    //根据token获取邮箱信息
    Result<Map<String, Object>> queryEmailByToken(String token);


}
